package com.wzh.designmode.create.singleton;
/**
 * 登记式/静态内部类
 * @author wzh
 *
 */
public class StaticInnerSingle {
	//定义一个静态类
	private static class SingleHolder{
		private static final StaticInnerSingle SINGLE=new StaticInnerSingle();
	}
	private StaticInnerSingle(){}
	public static final StaticInnerSingle getInit(){
		return SingleHolder.SINGLE; //定义一个静态内部类 进行调用的时候才会进行初始化 
	}
}
